package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 访客信息表
 * @author: whf
 * @create: 2022-03-17 16:55
 **/
@ApiModel
@Data
@TableName("tb_visitor_info")
public class TbVisitorInfo implements Serializable {

    private static final long serialVersionUID =  -1L;

    private Long visitorId;

    @ApiModelProperty(value = "访客姓名")
    private String visitorName;

    @ApiModelProperty(value = "访客照片")
    private String photo;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "openid")
    private String openId;

    @ApiModelProperty(value = "访问次数")
    private Integer visitNum;

    @ApiModelProperty(value = "是否在黑名单")
    private Integer isBlack;

    @ApiModelProperty(value = "加入原因")
    private String joinReason;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 删除标志0未删除1已删除
     */
    @TableLogic
    @TableField(value = "del_flag")
    @ApiModelProperty(hidden = true)
    private String delFlag;

    @TableField(exist = false)
    private Integer type;
}
